package com.dearbinge.data.service.impl.dictionary;

import com.dearbinge.data.api.dictionary.DictionaryService;
import com.dearbinge.data.dao.dictionary.DictionaryMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service("dictionaryService")
public class DictionaryServicelmol implements DictionaryService {

    @Autowired
    DictionaryMapper dictionaryMapper;

    @Override
    public List<Map> getUserRole () {
        List<Map> list = dictionaryMapper.getUserRole();
        return list;
    }

    @Override
    public List<Map> getUserRoleName (String userRoleType) {
        List<Map> list = dictionaryMapper.getUserRoleName(userRoleType);
        return list;
    }
}
